﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <meta name="viewport" content="width=400, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
    @ViewHelper.Css("/css/style.css")
    @ViewHelper.Css("/css/demo.css")
    @ViewHelper.Css("/css/global.css")
    @ViewHelper.Css("/css/admin/global.css")
    @ViewHelper.JavaScript("http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js")
    @ViewHelper.JavaScript("/js/admin/global.js")
    @RenderSection("UsingFile", false)
</head>

<body>
    @{
        if (ViewBag.IsLogin ?? false)
        {
        <text>
        <header>
            <a href="/admin/index" style="float: left; padding: 10px;">后台首页</a>

            <span style="float: right; padding: 10px;">@(ViewBag.User.UserName)</span>
            <a href="/admin/logout" style="float: right; padding: 10px;">注销</a>
            <div class="clearall"></div>
        </header>
        </text>
        }
    }
    <div class="content admin">
        @RenderBody()
    </div>
</body>
</html>
